﻿<UserControl x:Class="Schedulr.Plugins.ImportMetadata.ImportMetadataPluginSettingsControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <StackPanel Orientation="Vertical">
            <CheckBox IsChecked="{Binding Path=UseCustomPictureDescription}"><Label Content="Use a custom format for the picture's description" /></CheckBox>
            <Grid Margin="20,5,0,0" IsEnabled="{Binding Path=UseCustomPictureDescription}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <TextBox Grid.Column="0" Text="{Binding Path=CustomPictureDescription}" AcceptsReturn="True" Height="100" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" />
                <Button Grid.Column="1" Content="..." x:Name="editCustomPictureDescriptionButton" Click="editCustomPictureDescriptionButton_Click" Margin="5,0,0,0" VerticalAlignment="Top" Style="{DynamicResource MediumButton}" />
            </Grid>
        </StackPanel>
    </Grid>
</UserControl>